package com.ruoyi.project.tugboat.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 转换后的消息主对象 t_mqtt_msg_convert
 * 
 * @author ruoyi
 * @date 2024-01-04
 */
public class TMqttMsgConvert extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 转换后消息主键 */
    @Excel(name = "转换后消息主键")
    private String msgConvertId;

    /** 拖轮代码 */
    @Excel(name = "拖轮代码")
    private String tugboatCod;

    /** 设备代码 */
    @Excel(name = "设备代码")
    private String deviceCod;

    /** 测点类型（模拟 value；开关 bool） */
    @Excel(name = "测点类型", readConverterExp = "模=拟,v=alue；开关,b=ool")
    private String pointTyp;

    /** 测点代码 */
    @Excel(name = "测点代码")
    private String pointCod;

    /** 测点数据值 */
    @Excel(name = "测点数据值")
    private String pointVal;

    /** 接收到原始消息的监测时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "接收到原始消息的监测时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date monitorTim;

    /** 该条消息的来源ID */
    @Excel(name = "该条消息的来源ID")
    private String msgOriginId;

    /** 插入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "插入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date insTim;

    public void setMsgConvertId(String msgConvertId) 
    {
        this.msgConvertId = msgConvertId;
    }

    public String getMsgConvertId() 
    {
        return msgConvertId;
    }
    public void setTugboatCod(String tugboatCod) 
    {
        this.tugboatCod = tugboatCod;
    }

    public String getTugboatCod() 
    {
        return tugboatCod;
    }
    public void setDeviceCod(String deviceCod) 
    {
        this.deviceCod = deviceCod;
    }

    public String getDeviceCod() 
    {
        return deviceCod;
    }
    public void setPointTyp(String pointTyp) 
    {
        this.pointTyp = pointTyp;
    }

    public String getPointTyp() 
    {
        return pointTyp;
    }
    public void setPointCod(String pointCod) 
    {
        this.pointCod = pointCod;
    }

    public String getPointCod() 
    {
        return pointCod;
    }
    public void setPointVal(String pointVal) 
    {
        this.pointVal = pointVal;
    }

    public String getPointVal() 
    {
        return pointVal;
    }
    public void setMonitorTim(Date monitorTim) 
    {
        this.monitorTim = monitorTim;
    }

    public Date getMonitorTim() 
    {
        return monitorTim;
    }
    public void setMsgOriginId(String msgOriginId) 
    {
        this.msgOriginId = msgOriginId;
    }

    public String getMsgOriginId() 
    {
        return msgOriginId;
    }
    public void setInsTim(Date insTim) 
    {
        this.insTim = insTim;
    }

    public Date getInsTim() 
    {
        return insTim;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("msgConvertId", getMsgConvertId())
            .append("tugboatCod", getTugboatCod())
            .append("deviceCod", getDeviceCod())
            .append("pointTyp", getPointTyp())
            .append("pointCod", getPointCod())
            .append("pointVal", getPointVal())
            .append("monitorTim", getMonitorTim())
            .append("msgOriginId", getMsgOriginId())
            .append("insTim", getInsTim())
            .toString();
    }
}
